package edu.zhku;

import java.util.Scanner;

public class Calculate {

	public static void main(String[] args) {
		int User_Cal = 0;
		int VipUser_Cal = 0;
		User user = new User();
		VIPUser vipuser = new VIPUser();
		System.out.print("选择用户类型（1:普通用户   2:VIP用户）\r\n");
		int ch = new Scanner(System.in).nextInt();;
		switch (ch)
		{
		case 1:
			System.out.print("请输入普通用户的充值数目：\r\n");
			int a = new Scanner(System.in).nextInt();
			User_Cal = user.Pay(a);	
			System.out.println(User_Cal);
			break;
		case 2:
			System.out.print("请输入VIP用户的充值数目：\r\n");
			int b = new Scanner(System.in).nextInt();		
			VipUser_Cal = vipuser.VipPay(b);
			System.out.println(VipUser_Cal);
			break;
		}
	}
}
